/*
 *  QMPanel.h
 *  QuickMatch
 *
 *  Created by Leroy Ketelaars on 9/6/09.
 *  Copyright 2009 Zombies on Fire. All rights reserved.
 *
 */

#ifndef __QM_PANEL_H__
#define __QM_PANEL_H__

#include "SDL.h"
#include "BSRect.h"
#include <iostream>
#include <vector>

class QMPanel
{
public:
	SDL_Surface		*fill,
					*render;
			
	vector<QMButton>	buttons;		
	vector<QMText>		labels;
	
	
	bool			visible,
					is_animating,
					is_collapsed;
					
	float			curr_x, curr_y; //current x and y
	
	SDL_Rect		bounds, temprect;
	int				coll_x, coll_y; //collapsed x and y
	int				exp_x, exp_y;	//expanded x and y
	int 			width;

	QMPanel(): fill(NULL), render(NULL), visible(true), is_animating(false),
				is_collapsed(false), curr_x(0.0f), curr_y(0.0f),
				coll_x(0.0f), coll_y(0.0f), exp_x(0.0f), exp_y(0.0f),
				width(256) {};
		
	void		animate(bool close)
	{
		if(!is_animating)
		{
			if(!is_collapsed)
			{
			//	if(temprect)
			}
		}
	}
};

#endif
